/*
 * @Description: Person测试类
 * @Author: rendc
 * @Date: 2025-03-04 09:22:20
 * @LastEditors: rendc
 * @LastEditTime: 2025-03-04 09:34:38
 */
public class PersonTest {
  public static void main(String[] args) {
    // 创建对象
    Person p1 = new Person();
    p1.show(); // name:null age:0
    Person p2 = new Person("Tom", 20);
    p2.show();
    //
    Person p3 = new Person("Jerry");
    p3.show();
    Person p4 = new Person(30);
    p4.show();
  }
}